<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <title>JavaBean应用</title>        
 </head>
 <body>
 <jsp:useBean id="produce" class="com.lyq.bean.Produce2"></jsp:useBean>
 <jsp:setProperty property="name" name="produce" value="洗衣机"/>
 <jsp:setProperty property="price" name="produce" value="8888.88"/>
 <jsp:setProperty property="count" name="produce" value="888"/>
 <jsp:setProperty property="factory" name="produce" value="广东省xxx公司"/>
 <div>
 	<ul>
 		<li>商品名称：<jsp:getProperty property="name" name="produce"/></li>
 		<li>价格：<jsp:getProperty property="price" name="produce"/></li>
 		<li>数量：<jsp:getProperty property="count" name="produce"/></li>
 		<li>厂址：<jsp:getProperty property="factory" name="produce"/></li>
 	</ul>
 </div>
 </body>
</html>